package com.命令模式.命令;

import com.命令模式.Stock;

/**
 * @author: 
 * @Date: 2022/8/26
 * @Description:
 */
public class BuyStockOrder implements Order {
    private Stock abcStock;

    public BuyStockOrder(Stock abcStock){
        this.abcStock = abcStock;
    }

    public void execute() {
        abcStock.buy();
    }
}
